<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script src="<%=request.getContextPath()%>/ui/js/jquery.js"></script>
<%-- <script src="<%=request.getContextPath()%>/ui/js/paginate.js"></script> --%>
<%-- <script src="<%=request.getContextPath()%>/ui/js/customPaginate.js"></script> --%>
<script src="<%=request.getContextPath()%>/ui/js/jquery.dataTables.min.js"></script>
<script src="<%=request.getContextPath()%>/ui/js/customDataTables.js"></script>

<%@include file="/ui/jsp/includes/noNavHeader.jspf"%>

<div class="hero-unit secondary_container">
	<div id="table-subject-header">
		View Student List
	</div>
	<hr>
	
	<div class="row-fluid">
		<form method="POST" id="viewStudentForm" >


			<div class="span10">
				<table id='dataTableList' class="table table-striped table-bordered">
					<thead>
						<tr>
							
							<th>First Name</th>
							<th>Last Name</th>
							<th>N Number</th>
							<th>E-mail Address</th>
							<th>Major</th>
							<th>Year Graduated</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="student" items="${studentList}">
							<tr class="paginationList">
								
								<td>${student.firstName}</td>
								<td>${student.lastName}</td>
								<td>${student.nnumber}</td>
								<td>${student.email}</td>
								<td>${student.major}</td>
								<td>${student.yearGraduated}</td>
							</tr>
							
						</c:forEach>
						
					</tbody>
				</table>

				<div class="pagination"></div>
			</div>
			<input type="hidden" id="studentId" name="studentId" value=""/>
		</form>
	</div>
	</div>
	<%@include file="/ui/jsp/includes/footer.jspf"%>